package com.example.everying.model.entity.content;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @program: everything
 * @description: 文章申请记录
 * @author: zw
 * @create: 2025-05-14 16:45
 **/
@Data
@TableName("activity_apply")
public class ActivityApply implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "分类主键")
    @NotNull(message = "id不能为空")
    private String id;

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "文章id")
    private String artId;

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "接单人id")
    private String userId;

    @ApiModelProperty(value = "接单时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime acceptedAt;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endAt;

    @ApiModelProperty(value = "订单状态：0：已取消；1：已接单；2未接单；3：已完成；4：已退出；5: 已拒绝；")
    @NotNull(message = "状态不能为空")
    private String ordersStatus;

    @ApiModelProperty(value = "状态：0：公开；1：私密；")
    private Integer status;

    @ApiModelProperty(value = "拒绝次数")
    private Integer refuseNum;

    @ApiModelProperty(value = "查看状态：1：已读；2：未读；")
    private Integer appViewStatus;

    @ApiModelProperty(value = "使用积分")
    private Integer points;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmt;
}
